package com.ruoyi.web.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.service.IUploadService;
import org.springframework.stereotype.Service;

@Service
public class IUploadServiceImpl implements IUploadService {

    @Override
    public AjaxResult uploadConfigByApp() {
        //TODO 后面改为动态配置
        AjaxResult ajax = AjaxResult.success();
        //最大上传文件大小
        ajax.put("limitFileSize", 50);
        //分片大小
        ajax.put("sliceSize", 5);
        //是否开启
        ajax.put("sliceSwitch", 0);
        return ajax;
    }
}
